package main

import (
	"fmt"
	"mall_book/orm"
	"mall_book/router"
)

func main() {

	//数据库连接
	err := orm.InitGorm()
	if err != nil {
		fmt.Println("连接数据库失败：", err)
	}

	//启动路由
	router.InitRouter()
}
